import { initGlobalState, MicroAppStateActions } from "qiankun";
import router from '../router/index'
const initialState = {
  userName: '小明',
  // 子应用跳转主应用的页面的方法
  mainRouteLink(url: string) {
    console.log(11);
    setTimeout(() => {
      router.push(url)
    }, 1)

  }
};
const actions: MicroAppStateActions = initGlobalState(initialState);

export default actions;
